package gov.pbc.gx.nn.pz.dao;

import com.bstek.bdf2.core.orm.jdbc.JdbcDao;

public abstract class AbstractJdbcDao extends JdbcDao{

	@Override
	protected String buildFieldName(String name) {
		if(name==null)return name;
		StringBuffer sb=new StringBuffer();
		for(char ch:name.toCharArray()){
			boolean upper=Character.isUpperCase(ch);
			if(upper){
				sb.append("_");
			}
			sb.append(Character.toUpperCase(ch));
		}
		sb.append("_");
		return sb.toString();
	}
	
}
